home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
linuxcon.000
/
linuxcon
/
linuxconf-1.6
/
askrunlevel
/
internal.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-14
|
953b
|
47 lines
#pragma interface
#ifndef INTERNAL_H
#define INTERNAL_H
#ifndef MISC_H
#include "../misc/misc.h"
#endif
struct RUNLEVEL {
char init_runlevel; // as understood by /sbin/init
char netconf_runlevel; // as understood by netconf
// 0,1 or 2
char graphic_level; // 0: text mode
// 1: Graphic mode, workstation
// 2: X terminal
SSTRING title;
char graphic_err; // Not available because graphic is
// not configured
char net_err; // Not available because net is
// not configured
};
struct ASK_PARM{
int timeout;
int defmode;
};
class RUNLEVELS{
public:
RUNLEVEL tbrun[6];
SSTRING tbmenu[6];
/*~PROTOBEG~ RUNLEVELS */
public:
RUNLEVELS (int graphic_ok, int net_ok);
void config (void);
void define (void);
private:
void parse (const char *str, RUNLEVEL *ptrun);
public:
void save (void);
void setlevel (int choice);
void setmenu (const char *menuopt[]);
~RUNLEVELS (void);
/*~PROTOEND~ RUNLEVELS */
};
#endif